package com.supersoul.myself.service;

import com.supersoul.myself.entity.Blog;
import com.supersoul.myself.entity.Category;
import com.supersoul.myself.entity.User;
import com.supersoul.myself.ex.ServiceException;
import com.supersoul.myself.util.PageVO;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;

public interface CategoryService {
    String saveCategory(Category category, User user) throws ServiceException;

    void delCategoryById(String id) throws ServiceException;

    Page<Category> getCategoryByUser(PageVO pageVO, User user) throws ServiceException;

    Category getCategory(String cgId) throws ServiceException;
}
